<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let age = 15
        console.log(false && age++)
        console.log(age);//输出是15 因为左边是假右边不执行

        let num = 44
        console.log(true || num++);
        console.log(num);//输出是44 因为左边为真 右边不执行

        console.log(11 && 33);//若全是真值，则输出最后一个
        console.log(22 || 55);//若全是真值，则输出第一个
    </script>
</body>

</html>